import request from '@/utils/request';

const awards = {
  list (params) {
    return request.get('/cgzh/awards/list', { params });
  },
  add (data) {
    return request.post('/cgzh/awards/add', data);
  },
  update (data) {
    return request.post('/cgzh/awards/update', data);
  },
  get (id) {
    return request.get(`/cgzh/awards/detail/${id}`);
  },
  delete (id) {
    return request.post(`/cgzh/awards/delete/${id}`);
  },
  myList (params) {
    return request.get('/cgzh/awards/myList', { params });
  },
  getAll (id) {
    return request.get(`/cgzh/awards/allDetail/${id}`);
  },
  memberAddList (data) {
    return request.post(`/cgzh/awardsMember/addList`, data);
  },
  companyAddList (data) {
    return request.post(`/cgzh/awardsCompany/addList`, data);
  },
  companyListGet (id) {
    return request.get(`/cgzh/awardsCompany/getByAwardsId/${id}`);
  },
  memberListGet (id) {
    return request.get(`/cgzh/awardsMember/getByAwardsId/${id}`);
  },
  projectAddList (data) {
    return request.post(`/cgzh/awardsProject/addList`, data);
  },
  projectListGet (id) {
    return request.get(`/cgzh/awardsProject/getByAwardsId/${id}`);
  },

  submit (data) {
    return request.post(`/cgzh/awards/submit`, data);
  },
  getJoinList (params) {
    return request.get('/cgzh/awards/getJoinList', { params })
  },

  addAwardsList (data) {
    return request.post(`/cgzh/awards/addAwardsList`, data);
  },

}

export default awards;
